File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
kitsune/messages/jinja2/messages/includes Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 52
52
53
53
{% macro outbox_message(message) -%}
54
54
< span class ="to ">
55
- {% if message.recipient %}
55
+ {% if message.recipients_count > 0 %}
56
56
< p > < strong > {{ _('To') }}:</ strong >
57
- {% if message.recipients > 1 -%}
58
- {% set comma = joiner(', ') %}
59
- {% for user in message.to.all() -%}
60
- {{ comma() }}
61
- {{ name_link(user) }}
62
- {%- endfor %}
63
- {% else %}
64
- {{ name_link(message.recipient) }}
65
- {% endif %}
57
+ {% set comma = joiner(', ') %}
58
+ {% for user in message.to.all() -%}
59
+ {{ comma() }}
60
+ {{ name_link(user) }}
61
+ {% else %}
62
+ {{ name_link(message.recipient) }}
63
+ {% endfor %}
66
64
</ p >
67
65
{% endif %}
68
66
</ span >
69
- {% if in_staff_group(request.user) and message.to_group %}
67
+ {% if in_staff_group(request.user) and message.to_groups_count > 0 %}
70
68
< span class ="to-group ">
71
69
< p > < strong > {{ _('To Groups') }}:</ strong >
72
70
{% set comma = joiner(', ') %}
73
- {% for group in message.to_group.all() -%}
74
- {{ comma() }}
75
- {{ group_link(group) }}
71
+ {% for group in message.to_groups -%}
72
+ {%- for profile in group.profile.all() -%}
73
+ {{ comma() }}
74
+ < a href ="{{ url('groups.profile', profile.slug) }} "> {{ group }}</ a >
75
+ {% endfor %}
76
76
{% endfor %}
77
77
</ p >
78
78
</ span >
You can’t perform that action at this time.
0 commit comments